//
//  ViewController.m
//  StudentInfo
//
//  Created by student on 13-12-5.
//  Copyright (c) 2013年 niit. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view, typically from a nib.
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (IBAction)certain:(id)sender {
    self.print.text = [NSString stringWithFormat:@"%@ \n%@",self.name.text,self.age.text];
    
    self.name.text=@"";
    self.age.text=@"";
    
    [self.name resignFirstResponder];
    [self.age resignFirstResponder];
    
}
@end
